package com.whmskj.xjlhsc.mobie.ProductionManagement.mapper;

import com.whmskj.xjlhsc.mobie.ProductionManagement.pojo.dto.MonthYieldReportsDTO;
import com.whmskj.xjlhsc.mobie.ProductionManagement.pojo.vo.YieldReportsResultVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface YieldReportsMapper {
    List<YieldReportsResultVO> getYieldReportsByDay(
            @Param("process") String process, @Param("dayTime") String dayTime);

    List<YieldReportsResultVO> getYieldReportsByMonth(
            @Param("process") String process, @Param("monthStart") String monthStart, @Param("monthEnd") String monthEnd);

    @Select("select month,otherOrganiser,endDate from inventoryMonth ORDER BY month")
    List<MonthYieldReportsDTO> getPanCunMonthYieldReports();
}